import {service} from "@/config/request.js";
 
 
export function listMallOrderProducts(query) {
	return service({
		path: '/pigx-mall/app/mallProduct/listMallOrderProducts',
		method: 'get',
		params: query,
	});
} 

// 确认收获
export function confireOrder(query) {
	return service({
		path: `/pigx-mall/app/mallProduct/confireOrder/${query.orderId}`,
		method: 'put', 
	});
} 
// 取消订单
export function cancelOrder(query) {
	return service({
		path: `/pigx-mall/app/mallProduct/cancelOrder/${query.orderId}`,
		method: 'put', 
	});
} 
// 删除订单
export function deleteOrder(query) {
	return service({
		path: `/pigx-mall/app/mallProduct/removeById/${query.orderId}`,
		method: 'delete', 
	});
} 